import globalConfig from './globalConfig.js'


/**
 * 环境控制
 */
const evn = {
    //本地环境
    local: {
        baseUrl: 'http://10.1.1.43:8365',
        uploadUrl: "http://47.100.123.137",
        imageUrl: 'http://47.100.123.137/images',
        minioImage: 'http://47.100.123.137:9002/',
        envName: 'local',
    },
    //测试环境
    test: {
        // 需要在vue.config.js或vite.config.js中添加跨域
        baseUrl: `/api-${ globalConfig.appName }-test`,
        uploadUrl: "http://cheegon.cn",
        imageUrl: 'http://cheegon.cn/images',
        minioImage: 'http://cheegon.cn/minio/image',
        envName: 'test',
    },
    //生产环境
    prod: {
        // 需要在vue.config.js或vite.config.js中添加跨域
        baseUrl: `/api-${ globalConfig.appName }-release`,
        uploadUrl: "https://cheegon.cn",
        imageUrl: 'https://cheegon.cn/images',
        minioImage: 'https://cheegon.cn/minio/image',
        envName: 'prod',
    }
}

export const curr_env = evn.local;

